package com.cgtong.android.mvp.contract;

import com.cgtong.android.bean.SimpleResult;
import com.cgtong.android.http.callback.BaseCallBack;
import com.zhouyou.http.exception.ApiException;
import com.zhouyou.http.subsciber.IProgressDialog;

import java.io.File;
import java.util.List;

import io.reactivex.disposables.Disposable;

/**
 * Created by chunc on 2017/10/23.
 */

public interface ReportProblemContract {
    interface Model {
        Disposable httpCommitReport(long problemId, String desc, String address, double lng, double lat, int isDraft, int isOpen, List<File> imgFiles, File posFile, File voiceFile, int voiceTime, IProgressDialog progressDialog, BaseCallBack<SimpleResult> baseCallBack);

    }

    interface View {
        void onError(ApiException e);

        void onHttpCommitReportSuccess(SimpleResult simpleResult);

    }

    interface Presenter {
        void onDestroy();

        Disposable httpCommitReport(long problemId, String desc, String address, double lng, double lat, int isDraft, int isOpen, List<File> imgFiles, File posFile, File voiceFile, int voiceTime, IProgressDialog progressDialog);
    }
}
